text

public String text()

Returns a string that represents the default text passed to the window.prompt() JavaScript function or an empty string, if no default value is passed.